/*
package com.example.demo.scheduleTask;

import IndicatorBatchMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
@Slf4j
public class BatchJob {
    @Autowired
    private IndicatorBatchMapper indicatorBatchMapper;

    @Scheduled(cron = "0 0/1 13-18 * * ? ")//每5秒执行一次
    public void test1() {
        log.info("job test1 start ...........");
        Map<String, String> map = new HashMap<String, String>();
        map.put("batchType", "1");
        map.put("status", "1");
        indicatorBatchMapper.insert(map);
    }
}
*/
